/*
	COMMON CLIENT SIDE JS
*/

function buildURL(){
	var loc = String(window.location.href)
	var path = loc.split('/');
	
	return path[2];
}

function removeDuplicates(inputArray) {
    var i;
    var len = inputArray.length;
    var outputArray = [];
    var temp = {};

    for (i = 0; i < len; i++) {
        temp[inputArray[i]] = 0;
    }
    for (i in temp) {
        outputArray.push(i);
    }
    return outputArray;
}